<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1 , user-scalable=no">
  <title>陕西陇朝盈科技有限公司</title>
  <link rel="stylesheet" href="css/bootstrap.min.css" />
  <link rel="stylesheet" href="css/index.css" />
  <link rel="stylesheet" href="css/animate.css" />
  <script src="js/jquery-1.11.3.js"></script>
  <script src="js/bootstrap.min.js"></script>
  <!--[if lt IE 9]>
  <script src="js/html5shiv.min.js"></script>
  <script src="js/respond.min.js"></script>
  <![endif]-->
</head>

<body>
<!--导航-->
<nav class="navbar navbar-default" role="navigation">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#example-navbar-collapse">
        <span class="sr-only">切换导航</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand logo" href="index.html"></a>
    </div>
    <div class="collapse navbar-collapse" id="example-navbar-collapse">
      <ul class="nav navbar-nav navbar-right">
        <li>
          <a href="index.html">首页</a>
        </li>
        <li>
          <a href="service.html">服务领域</a>
        </li>
        <li>
          <a href="apply_zhiwei.html">招聘信息</a>
        </li>
        <li>
          <a href="add.html">加入我们</a>
        </li>
        <li>
          <a href="contact.html">联系我们</a>
        </li>
      </ul>
    </div>
  </div>
</nav>
<!--导航-->

<!--home-->
<div id="home">
  <div class="lvjing">
    <div class="row wow fadeInUp" data-wow-duration="0.5s">
      <img class="img-responsive" src="images/banner5.jpg" alt="" />
    </div>
  </div>
</div>
<!--home-->
<!--bbs-->
<div id="bbs">
  <div class="container">
    <div class="row wow fadeInUp" data-wow-duration="1s" data-wow-delay="0.5s">
      <div class="col-md-12"> <span class="line"></span>
        <h3 class="title">时事新闻</h3><span class="line"></span>
        <div id="newsDetails"></div>
      </div>
    </div>
  </div>
</div>

<!--bbs-->

<!--footer-->
<div class="footer">
  <div class="container">
    <div class="row">
      <div class="col-md-6 col-sm-6 col-xs-12">
        <div class="row">
          <div class="col-md-4 col-sm-4 col-xs-4">
            <h4>服务热线</h4>
            <ul class="list-unstyled">
              <li>
                <a href="#">人力资源服务</a>
              </li>
              <li>
                <a href="#">陕西社保</a>
              </li>
              <li>
                <a href="#">代办代缴</a>
              </li>
            </ul>
          </div>
          <div class="col-md-4 col-sm-4 col-xs-4">
            <h4>加入我们</h4>
            <ul class="list-unstyled">
              <li>
                <a href="#">期待和您一起</a>
              </li>
              <li>
                <a href="#">奋进</a>
              </li>
            </ul>
          </div>
          <div class="col-md-4 col-sm-4 col-xs-4">
            <h4>招聘社区</h4>
            <ul class="list-unstyled">
              <li>
                <a href="#">中粮业务代表</a>
              </li>
              <li>
                <a href="#">迎聘岗位</a>
              </li>
            </ul>
          </div>
        </div>
      </div>
      <div class="col-md-6 col-sm-6 col-sm-12">
        <div class="row">
          <div class="col-md-6 col-sm-6 col-xs-6">
            <h4>联系我们</h4>
            <ul class="list-unstyled">
              <li>
                <a href="#">办公地址：陕西省西安市经济开发区凤城二路海璟国际A座1801室</a>
              </li>
              <li>
                <a href="#">座机：89619882</a>
              </li>
              <li>
                <a href="#">电话：17782655152</a>
              </li>
            </ul>

          </div>
          <div class="col-md-6 col-sm-6 col-xs-6">
            <ul class="list-unstyled">
              <li>
                <a href="#"><img style="width: 50%;height:auto;" src="images/top_03.png" alt="" /></a>
              </li>
            </ul>
            <p>扫一扫了解更多职位</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<!--footer-->
<script>
  var arId = getQueryVariable('areaId');
    console.log(arId);

  $(document).ready(function(){
    $.ajax({
      type: "GET", //请求方式
      url: "http://www.ypinkj.com/api/area/web/getArea?id="+arId , //地址，就是json文件的请求路径
      dataType: "json", //数据类型可以为 text xml json  script  jsonp
      success: function(res) { //返回的参数就是 action里面所有的有get和set方法的参数
        var dats = res.data;
        if(res.msg="成功") {
//          console.log(dats.areaId);
          console.log(dats.areaTitle);
          var str = '';
				 var list = '';
//          for(var i=0)
          list +="<div class='col-md-1 col-sm-1 hidden-xs'></div>"
//          list +="<div class='col-md-5 col-sm-5 col-xs-12'>"
//          list +="<p class='icon '>"
//          list +="<img src='"+ dats.areaImg + "' class='img-responsive' alt='' />"
//          list +="</p>"
//          list +="</div>"
          list +="<div class='col-md-10 col-sm-10 col-xs-12' style='text-align: left'>"
          list +="<h3 class='areaTitle' style='margin-bottom: 20px;'>"+dats.areaTitle+"</h3>"
          list +="<div class='text'  style='font-size:12px;'>"+dats.areaText+"</div>"
          list +="</div>";
          str +="<div>"+ list +"</div>";
          $("#newsDetails").append(str);
        }
      }
    });
  });
    function getQueryVariable(variable) {
    var query = window.location.search.substring(1);
    var vars = query.split("?");
    for(var i = 0; i < vars.length; i++) {
      var pair = vars[i].split("=");
      if(pair[0] == variable){
        return pair[1];
      }
    }
    return(false);
  }
</script>
</body>
</html>
